package com.crm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.crm.model.SysUser;

public interface SysUserMapper extends BaseMapper<SysUser>{

	public SysUser selectByAccount(String account);
	
	public List<SysUser> selectByUserId(String userId);

	public List<SysUser> selectByUserId(SysUser Record);

	public List<SysUser> selectByDepartmentUserId(SysUser record);
	
	public int changePassword(SysUser record);
	
	public List<SysUser> selectUserByDutyId(SysUser record);
	
	public List<String>  selectUsersByDutyIds(List<String> list);
	
	List<SysUser> selectByDuty(SysUser t);

	public int updateHeadImage(SysUser t);
	
	public int updateIsOnline(@Param("userId")String userId, @Param("isOnline")String isOnline);

}